package com.atguigu.service;

import com.atguigu.pojo.Book;
import com.atguigu.pojo.PageInfo;

import java.util.List;

/**
 * @Author luoyin
 * @Date 17:14 2022/7/18
 * @Description 描述
 **/
public interface BookService {
    List<Book> selectAll()throws Exception;

    PageInfo<Book> selectByPage(int currentPage)throws Exception;

    int add(Book book)throws Exception;

    int update(Book book)throws Exception;

    Book selectById(int bookId)throws Exception;

    int delete(int bookId)throws Exception;

    PageInfo<Book> selectList(int currentPage, Double floorPrice, Double peakPrice)throws Exception;
}
